package com.jindy.module.statement.service.impl;

import java.util.List;

import com.jindy.module.statement.mapper.LogisticsExpensesMapper;
import com.jindy.module.statement.service.ILogisticsExpensesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.statement.domain.LogisticsExpenses;

/**
 * 物流及辅料费用Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-27
 */
@Service
public class LogisticsExpensesServiceImpl implements ILogisticsExpensesService
{
    @Autowired
    private LogisticsExpensesMapper logisticsExpensesMapper;

    /**
     * 查询物流及辅料费用
     *
     * @param id 物流及辅料费用主键
     * @return 物流及辅料费用
     */
    @Override
    public LogisticsExpenses selectLogisticsExpensesById(Long id)
    {
        return logisticsExpensesMapper.selectLogisticsExpensesById(id);
    }

    /**
     * 查询物流及辅料费用列表
     *
     * @param logisticsExpenses 物流及辅料费用
     * @return 物流及辅料费用
     */
    @Override
    public List<LogisticsExpenses> selectLogisticsExpensesList(LogisticsExpenses logisticsExpenses)
    {
        return logisticsExpensesMapper.selectLogisticsExpensesList(logisticsExpenses);
    }

    /**
     * 新增物流及辅料费用
     *
     * @param logisticsExpenses 物流及辅料费用
     * @return 结果
     */
    @Override
    public int insertLogisticsExpenses(LogisticsExpenses logisticsExpenses)
    {
        return logisticsExpensesMapper.insertLogisticsExpenses(logisticsExpenses);
    }

    /**
     * 修改物流及辅料费用
     *
     * @param logisticsExpenses 物流及辅料费用
     * @return 结果
     */
    @Override
    public int updateLogisticsExpenses(LogisticsExpenses logisticsExpenses)
    {
        return logisticsExpensesMapper.updateLogisticsExpenses(logisticsExpenses);
    }

    /**
     * 批量删除物流及辅料费用
     *
     * @param ids 需要删除的物流及辅料费用主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsExpensesByIds(Long[] ids)
    {
        return logisticsExpensesMapper.deleteLogisticsExpensesByIds(ids);
    }

    /**
     * 删除物流及辅料费用信息
     *
     * @param id 物流及辅料费用主键
     * @return 结果
     */
    @Override
    public int deleteLogisticsExpensesById(Long id)
    {
        return logisticsExpensesMapper.deleteLogisticsExpensesById(id);
    }
}
